﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.EntityFrameworkCore;

namespace Model
{
    /// <summary>
    /// 数据上下文对象
    /// </summary>
    public class MyDbContext : DbContext
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public MyDbContext()
        {
        }
        /// <summary>
        /// 构造函数继承父类方法
        /// </summary>
        /// <param name="options"></param>
        public MyDbContext(DbContextOptions<MyDbContext> options) : base(options)
        {
        }
        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {


        }
        //实体类集合
        /// <summary>
        /// User
        /// </summary>
        public virtual DbSet<User> User { get; set; }
        /// <summary>
        /// Account
        /// </summary>
        public virtual DbSet<Account> Account { get; set; }
    }
}
